﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace GreenPepperTest
{
    class GlassDetector
    {
        string location;
        bool isActive;
        bool glassBroken;

        public GlassDetector()
        {
            location = "";
            isActive = false;
            glassBroken = false;
        }

        public GlassDetector(string loc)
        {
            location = loc;
            isActive = true;
            glassBroken = false;
        }

        public string Location
        {
            get
            {
                return location;
            }
            set
            {
                location = value;
            }
        }

        public bool IsOn
        {
            get
            {
                return isActive;
            }
            set
            {
                isActive = value;
            }
        }

        public bool IsGlassBroken
        {
            get
            {
                return glassBroken;
            }
            set
            {
                glassBroken = value;
            }
        }


    }
}
